.class public Lcom/xingbook/ecloud/e/q;
.super Landroid/widget/LinearLayout;

# interfaces
.implements Landroid/view/View$OnClickListener;


# instance fields
.field private a:Landroid/widget/TextView;

.field private b:Lcom/xingbook/ui/ad;

.field private c:Lcom/xingbook/ecloud/e/r;


# direct methods
.method public constructor <init>(Landroid/content/Context;F)V
    .locals 10

    const/high16 v6, 0x4234

    const/16 v9, 0x11

    const/4 v5, 0x0

    const/4 v4, -0x2

    const/4 v8, -0x1

    invoke-direct {p0, p1}, Landroid/widget/LinearLayout;-><init>(Landroid/content/Context;)V

    const/high16 v0, 0x4c00

    invoke-virtual {p0, v0}, Lcom/xingbook/ecloud/e/q;->setBackgroundColor(I)V

    invoke-virtual {p0, v9}, Lcom/xingbook/ecloud/e/q;->setGravity(I)V

    const/16 v0, 0x8

    invoke-virtual {p0, v0}, Lcom/xingbook/ecloud/e/q;->setVisibility(I)V

    invoke-virtual {p0, p0}, Lcom/xingbook/ecloud/e/q;->setOnClickListener(Landroid/view/View$OnClickListener;)V

    new-instance v0, Landroid/widget/LinearLayout;

    invoke-direct {v0, p1}, Landroid/widget/LinearLayout;-><init>(Landroid/content/Context;)V

    const/4 v1, 0x2

    invoke-virtual {v0, v1}, Landroid/widget/LinearLayout;->setId(I)V

    const/4 v1, 0x1

    invoke-virtual {v0, v1}, Landroid/widget/LinearLayout;->setOrientation(I)V

    invoke-virtual {v0, v8}, Landroid/widget/LinearLayout;->setBackgroundColor(I)V

    invoke-virtual {v0, p0}, Landroid/widget/LinearLayout;->setOnClickListener(Landroid/view/View$OnClickListener;)V

    new-instance v1, Landroid/widget/LinearLayout$LayoutParams;

    const v2, 0x442dc000

    mul-float/2addr v2, p2

    float-to-int v2, v2

    invoke-direct {v1, v2, v4}, Landroid/widget/LinearLayout$LayoutParams;-><init>(II)V

    invoke-virtual {v0, v1}, Landroid/widget/LinearLayout;->setLayoutParams(Landroid/view/ViewGroup$LayoutParams;)V

    invoke-virtual {p0, v0}, Lcom/xingbook/ecloud/e/q;->addView(Landroid/view/View;)V

    new-instance v1, Landroid/widget/TextView;

    invoke-direct {v1, p1}, Landroid/widget/TextView;-><init>(Landroid/content/Context;)V

    const v2, -0xcccccd

    invoke-virtual {v1, v2}, Landroid/widget/TextView;->setTextColor(I)V

    const/high16 v2, 0x4220

    mul-float/2addr v2, p2

    invoke-virtual {v1, v5, v2}, Landroid/widget/TextView;->setTextSize(IF)V

    invoke-virtual {v1, v9}, Landroid/widget/TextView;->setGravity(I)V

    const-string v2, "\u6807\u8bb0\u8bfe\u7a0b\u8fdb\u5ea6"

    invoke-virtual {v1, v2}, Landroid/widget/TextView;->setText(Ljava/lang/CharSequence;)V

    new-instance v2, Landroid/widget/LinearLayout$LayoutParams;

    const/high16 v3, 0x4294

    mul-float/2addr v3, p2

    float-to-int v3, v3

    invoke-direct {v2, v8, v3}, Landroid/widget/LinearLayout$LayoutParams;-><init>(II)V

    invoke-virtual {v1, v2}, Landroid/widget/TextView;->setLayoutParams(Landroid/view/ViewGroup$LayoutParams;)V

    invoke-virtual {v0, v1}, Landroid/widget/LinearLayout;->addView(Landroid/view/View;)V

    new-instance v1, Landroid/view/View;

    invoke-direct {v1, p1}, Landroid/view/View;-><init>(Landroid/content/Context;)V

    const v2, -0x333334

    invoke-virtual {v1, v2}, Landroid/view/View;->setBackgroundColor(I)V

    new-instance v2, Landroid/widget/LinearLayout$LayoutParams;

    const/4 v3, 0x1

    invoke-direct {v2, v8, v3}, Landroid/widget/LinearLayout$LayoutParams;-><init>(II)V

    const/high16 v3, 0x4190

    mul-float/2addr v3, p2

    float-to-int v3, v3

    iput v3, v2, Landroid/widget/LinearLayout$LayoutParams;->rightMargin:I

    iput v3, v2, Landroid/widget/LinearLayout$LayoutParams;->leftMargin:I

    invoke-virtual {v1, v2}, Landroid/view/View;->setLayoutParams(Landroid/view/ViewGroup$LayoutParams;)V

    invoke-virtual {v0, v1}, Landroid/widget/LinearLayout;->addView(Landroid/view/View;)V

    new-instance v1, Landroid/widget/TextView;

    invoke-direct {v1, p1}, Landroid/widget/TextView;-><init>(Landroid/content/Context;)V

    const v2, -0x99999a

    invoke-virtual {v1, v2}, Landroid/widget/TextView;->setTextColor(I)V

    const/high16 v2, 0x4210

    mul-float/2addr v2, p2

    invoke-virtual {v1, v5, v2}, Landroid/widget/TextView;->setTextSize(IF)V

    const-string v2, "\u60a8\u8981\u6807\u8bb0\u7684\u5185\u5bb9\u662f\uff1a"

    invoke-virtual {v1, v2}, Landroid/widget/TextView;->setText(Ljava/lang/CharSequence;)V

    new-instance v2, Landroid/widget/LinearLayout$LayoutParams;

    invoke-direct {v2, v8, v4}, Landroid/widget/LinearLayout$LayoutParams;-><init>(II)V

    const/high16 v3, 0x4218

    mul-float/2addr v3, p2

    float-to-int v3, v3

    iput v3, v2, Landroid/widget/LinearLayout$LayoutParams;->topMargin:I

    mul-float v3, v6, p2

    float-to-int v3, v3

    iput v3, v2, Landroid/widget/LinearLayout$LayoutParams;->rightMargin:I

    iput v3, v2, Landroid/widget/LinearLayout$LayoutParams;->leftMargin:I

    invoke-virtual {v1, v2}, Landroid/widget/TextView;->setLayoutParams(Landroid/view/ViewGroup$LayoutParams;)V

    invoke-virtual {v0, v1}, Landroid/widget/LinearLayout;->addView(Landroid/view/View;)V

    new-instance v1, Landroid/widget/TextView;

    invoke-direct {v1, p1}, Landroid/widget/TextView;-><init>(Landroid/content/Context;)V

    iput-object v1, p0, Lcom/xingbook/ecloud/e/q;->a:Landroid/widget/TextView;

    iget-object v1, p0, Lcom/xingbook/ecloud/e/q;->a:Landroid/widget/TextView;

    const v2, -0x99999a

    invoke-virtual {v1, v2}, Landroid/widget/TextView;->setTextColor(I)V

    iget-object v1, p0, Lcom/xingbook/ecloud/e/q;->a:Landroid/widget/TextView;

    const/high16 v2, 0x4210

    mul-float/2addr v2, p2

    invoke-virtual {v1, v5, v2}, Landroid/widget/TextView;->setTextSize(IF)V

    new-instance v1, Landroid/widget/LinearLayout$LayoutParams;

    invoke-direct {v1, v8, v4}, Landroid/widget/LinearLayout$LayoutParams;-><init>(II)V

    mul-float v2, v6, p2

    float-to-int v2, v2

    iput v2, v1, Landroid/widget/LinearLayout$LayoutParams;->rightMargin:I

    iput v2, v1, Landroid/widget/LinearLayout$LayoutParams;->leftMargin:I

    iget-object v2, p0, Lcom/xingbook/ecloud/e/q;->a:Landroid/widget/TextView;

    invoke-virtual {v2, v1}, Landroid/widget/TextView;->setLayoutParams(Landroid/view/ViewGroup$LayoutParams;)V

    iget-object v1, p0, Lcom/xingbook/ecloud/e/q;->a:Landroid/widget/TextView;

    invoke-virtual {v0, v1}, Landroid/widget/LinearLayout;->addView(Landroid/view/View;)V

    new-instance v1, Landroid/widget/TextView;

    invoke-direct {v1, p1}, Landroid/widget/TextView;-><init>(Landroid/content/Context;)V

    const v2, -0x666667

    invoke-virtual {v1, v2}, Landroid/widget/TextView;->setTextColor(I)V

    const/high16 v2, 0x41f0

    mul-float/2addr v2, p2

    invoke-virtual {v1, v5, v2}, Landroid/widget/TextView;->setTextSize(IF)V

    const-string v2, "\u8bf4\u660e\uff1a\u6807\u8bb0\u5b8c\u6210\u540e\uff0c\u5c06\u63a8\u9001\u81f3\u5bb6\u957f\uff01"

    invoke-virtual {v1, v2}, Landroid/widget/TextView;->setText(Ljava/lang/CharSequence;)V

    new-instance v2, Landroid/widget/LinearLayout$LayoutParams;

    invoke-direct {v2, v8, v4}, Landroid/widget/LinearLayout$LayoutParams;-><init>(II)V

    const/high16 v3, 0x40a0

    mul-float/2addr v3, p2

    float-to-int v3, v3

    iput v3, v2, Landroid/widget/LinearLayout$LayoutParams;->topMargin:I

    mul-float v3, v6, p2

    float-to-int v3, v3

    iput v3, v2, Landroid/widget/LinearLayout$LayoutParams;->rightMargin:I

    iput v3, v2, Landroid/widget/LinearLayout$LayoutParams;->leftMargin:I

    invoke-virtual {v1, v2}, Landroid/widget/TextView;->setLayoutParams(Landroid/view/ViewGroup$LayoutParams;)V

    invoke-virtual {v0, v1}, Landroid/widget/LinearLayout;->addView(Landroid/view/View;)V

    new-instance v1, Lcom/xingbook/ui/XbLayout;

    invoke-direct {v1, p1}, Lcom/xingbook/ui/XbLayout;-><init>(Landroid/content/Context;)V

    const v2, -0x151516

    invoke-virtual {v1, v2}, Lcom/xingbook/ui/XbLayout;->setBackgroundColor(I)V

    new-instance v2, Landroid/widget/LinearLayout$LayoutParams;

    const/high16 v3, 0x42e6

    mul-float/2addr v3, p2

    float-to-int v3, v3

    invoke-direct {v2, v8, v3}, Landroid/widget/LinearLayout$LayoutParams;-><init>(II)V

    const/high16 v3, 0x4218

    mul-float/2addr v3, p2

    float-to-int v3, v3

    iput v3, v2, Landroid/widget/LinearLayout$LayoutParams;->topMargin:I

    invoke-virtual {v1, v2}, Lcom/xingbook/ui/XbLayout;->setLayoutParams(Landroid/view/ViewGroup$LayoutParams;)V

    invoke-virtual {v0, v1}, Landroid/widget/LinearLayout;->addView(Landroid/view/View;)V

    const/high16 v0, 0x4180

    mul-float/2addr v0, p2

    float-to-int v0, v0

    const/high16 v2, 0x4248

    mul-float/2addr v2, p2

    float-to-int v2, v2

    const/high16 v3, 0x438c

    mul-float/2addr v3, p2

    float-to-int v3, v3

    const/high16 v4, 0x42a0

    mul-float/2addr v4, p2

    float-to-int v4, v4

    new-instance v5, Lcom/xingbook/ui/ad;

    invoke-direct {v5, p1}, Lcom/xingbook/ui/ad;-><init>(Landroid/content/Context;)V

    const v6, -0x3a3a3b

    iput v6, v5, Lcom/xingbook/ui/ad;->i:I

    invoke-virtual {v5, p0}, Lcom/xingbook/ui/ad;->setOnClickListener(Landroid/view/View$OnClickListener;)V

    const/high16 v6, 0x4120

    iput v6, v5, Lcom/xingbook/ui/ad;->j:F

    const-string v6, "\u6682\u4e0d\u6807\u8bb0"

    iput-object v6, v5, Lcom/xingbook/ui/ad;->a:Ljava/lang/String;

    iput v9, v5, Lcom/xingbook/ui/ad;->d:I

    const/high16 v6, 0x421c

    mul-float/2addr v6, p2

    iput v6, v5, Lcom/xingbook/ui/ad;->c:F

    iput v8, v5, Lcom/xingbook/ui/ad;->b:I

    const v6, -0x555556

    invoke-virtual {v5, v6}, Lcom/xingbook/ui/ad;->setHilighted(I)V

    add-int v6, v2, v3

    add-int v7, v0, v4

    invoke-virtual {v5, v2, v0, v6, v7}, Lcom/xingbook/ui/ad;->layout(IIII)V

    invoke-virtual {v1, v5}, Lcom/xingbook/ui/XbLayout;->addView(Landroid/view/View;)V

    const v2, 0x44214000

    mul-float/2addr v2, p2

    float-to-int v2, v2

    new-instance v5, Lcom/xingbook/ui/ad;

    invoke-direct {v5, p1}, Lcom/xingbook/ui/ad;-><init>(Landroid/content/Context;)V

    iput-object v5, p0, Lcom/xingbook/ecloud/e/q;->b:Lcom/xingbook/ui/ad;

    iget-object v5, p0, Lcom/xingbook/ecloud/e/q;->b:Lcom/xingbook/ui/ad;

    const/4 v6, 0x1

    invoke-virtual {v5, v6}, Lcom/xingbook/ui/ad;->setId(I)V

    iget-object v5, p0, Lcom/xingbook/ecloud/e/q;->b:Lcom/xingbook/ui/ad;

    const v6, -0xc35f14

    iput v6, v5, Lcom/xingbook/ui/ad;->i:I

    iget-object v5, p0, Lcom/xingbook/ecloud/e/q;->b:Lcom/xingbook/ui/ad;

    invoke-virtual {v5, p0}, Lcom/xingbook/ui/ad;->setOnClickListener(Landroid/view/View$OnClickListener;)V

    iget-object v5, p0, Lcom/xingbook/ecloud/e/q;->b:Lcom/xingbook/ui/ad;

    const/high16 v6, 0x4120

    iput v6, v5, Lcom/xingbook/ui/ad;->j:F

    iget-object v5, p0, Lcom/xingbook/ecloud/e/q;->b:Lcom/xingbook/ui/ad;

    iput v9, v5, Lcom/xingbook/ui/ad;->d:I

    iget-object v5, p0, Lcom/xingbook/ecloud/e/q;->b:Lcom/xingbook/ui/ad;

    const/high16 v6, 0x421c

    mul-float/2addr v6, p2

    iput v6, v5, Lcom/xingbook/ui/ad;->c:F

    iget-object v5, p0, Lcom/xingbook/ecloud/e/q;->b:Lcom/xingbook/ui/ad;

    iput v8, v5, Lcom/xingbook/ui/ad;->b:I

    iget-object v5, p0, Lcom/xingbook/ecloud/e/q;->b:Lcom/xingbook/ui/ad;

    const v6, -0x555556

    invoke-virtual {v5, v6}, Lcom/xingbook/ui/ad;->setHilighted(I)V

    iget-object v5, p0, Lcom/xingbook/ecloud/e/q;->b:Lcom/xingbook/ui/ad;

    sub-int v3, v2, v3

    add-int/2addr v4, v0

    invoke-virtual {v5, v3, v0, v2, v4}, Lcom/xingbook/ui/ad;->layout(IIII)V

    iget-object v0, p0, Lcom/xingbook/ecloud/e/q;->b:Lcom/xingbook/ui/ad;

    invoke-virtual {v1, v0}, Lcom/xingbook/ui/XbLayout;->addView(Landroid/view/View;)V

    return-void
.end method


# virtual methods
.method public a(Ljava/lang/String;Ljava/lang/String;Lcom/xingbook/ecloud/e/r;)V
    .locals 1

    iget-object v0, p0, Lcom/xingbook/ecloud/e/q;->a:Landroid/widget/TextView;

    invoke-virtual {v0, p1}, Landroid/widget/TextView;->setText(Ljava/lang/CharSequence;)V

    iget-object v0, p0, Lcom/xingbook/ecloud/e/q;->b:Lcom/xingbook/ui/ad;

    iput-object p2, v0, Lcom/xingbook/ui/ad;->a:Ljava/lang/String;

    iput-object p3, p0, Lcom/xingbook/ecloud/e/q;->c:Lcom/xingbook/ecloud/e/r;

    const/4 v0, 0x0

    invoke-virtual {p0, v0}, Lcom/xingbook/ecloud/e/q;->setVisibility(I)V

    return-void
.end method

.method public a()Z
    .locals 1

    invoke-virtual {p0}, Lcom/xingbook/ecloud/e/q;->getVisibility()I

    move-result v0

    if-nez v0, :cond_0

    const/16 v0, 0x8

    invoke-virtual {p0, v0}, Lcom/xingbook/ecloud/e/q;->setVisibility(I)V

    const/4 v0, 0x1

    :goto_0
    return v0

    :cond_0
    const/4 v0, 0x0

    goto :goto_0
.end method

.method public onClick(Landroid/view/View;)V
    .locals 3

    const/16 v2, 0x8

    invoke-virtual {p1}, Landroid/view/View;->getId()I

    move-result v0

    const/4 v1, 0x1

    if-ne v0, v1, :cond_2

    iget-object v0, p0, Lcom/xingbook/ecloud/e/q;->c:Lcom/xingbook/ecloud/e/r;

    if-eqz v0, :cond_0

    iget-object v0, p0, Lcom/xingbook/ecloud/e/q;->c:Lcom/xingbook/ecloud/e/r;

    invoke-interface {v0}, Lcom/xingbook/ecloud/e/r;->a()V

    :cond_0
    invoke-virtual {p0, v2}, Lcom/xingbook/ecloud/e/q;->setVisibility(I)V

    :cond_1
    :goto_0
    return-void

    :cond_2
    invoke-virtual {p1}, Landroid/view/View;->getId()I

    move-result v0

    const/4 v1, 0x2

    if-eq v0, v1, :cond_1

    invoke-virtual {p0, v2}, Lcom/xingbook/ecloud/e/q;->setVisibility(I)V

    goto :goto_0
.end method
